home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20030409-20031118
/
000375_anthonypieper@cs.com_Tue Nov 4 09:46:05 2003.msg
< prev
next >
Wrap
Internet Message Format
|
2003-11-18
|
2KB
Path: newsmaster.cc.columbia.edu!panix!news.maxwell.syr.edu!postnews1.google.com!not-for-mail
From: anthonypieper@cs.com (newexpectuser)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: How do I pass a password in a kermit script
Date: 4 Nov 2003 05:16:30 -0800
Organization: http://groups.google.com
Lines: 32
Message-ID: <f0bb0f39.0311040516.50768d0a@posting.google.com>
References: <f0bb0f39.0310300922.3c050ba8@posting.google.com> <slrnbq2iv8.oe.fdc@sesame.cc.columbia.edu> <m14qxn4nlk.gnus@usa.net> <bo5o0u$kqm$1@newsmaster.cc.columbia.edu> <f0bb0f39.0311031218.7169c675@posting.google.com> <Pine.HPX.4.44.0311031239110.3588-100000@fog.ccsf.cc.ca.us>
NNTP-Posting-Host: 209.251.39.194
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1067951791 10786 127.0.0.1 (4 Nov 2003 13:16:31 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 4 Nov 2003 13:16:31 +0000 (UTC)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14631
I don't think though that any version of Kermit can automatically
delete a file it just transfered successfully though ?
Mark Sapiro <msapiro@ccsf.edu> wrote in message news:<Pine.HPX.4.44.0311031239110.3588-100000@fog.ccsf.cc.ca.us>...
> On 3 Nov 2003, newexpectuser wrote:
>
> > We just want to use a password passed from a kermit script instead of using keys.
> >
>
> I don't know if this helps or not, but this is what I do with C-Kermit
> 8.0.209 on FreeBSD Unix.
>
> \m(rhost) and \m(rdomain) are set earlier in the script.
>
> ...
> assign pswd1 not
> assign pswd2 equal
> while not equal {\m(pswd1)} {\m(pswd2)} {
> askq pswd1 {Password for \v(userid) on \m(rhost):}
> askq pswd2 {Reenter to confirm:}
> }
> set host /pty ssh -e none -l \v(userid) \m(rhost).\m(rdomain)
> if fail end 1 Unable to connect to \m(rhost).
> input 20 assword:
> if fail end 1 No password prompt.
> output \m(pswd1)\13
> ...
>
> The input and output statements see the password prompt from ssh
> and supply the password. It works in my situation.
>
> Of course the password, host info and userid can be supplied in
> many different ways to the script.